package cn.sunshine.ymcc.fegin;

import cn.sunshine.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value = "service-media",fallbackFactory = FallbackFactoryMediaFeign.class )
public interface MediaFeign {
    @RequestMapping(value = "/mediaFile/courseVideo/{courseId}",method = RequestMethod.GET)
    JSONResult getCourseVideo(@PathVariable("courseId") Long courseId);
}
